# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-cvss
_pkgname=${pkgname#python-}
pkgver=3.4
pkgrel=1
pkgdesc='CVSS2/3 library with interactive calculator for Python.'
arch=('any')
url='https://pypi.org/project/cvss/#files'
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('1841d6bca53896ab60f520cbed285ec535fc82ccb5185f5f7c0d344d9fd2c5d94ae31a376cc32822cf72d8cc62689f4b7d5ffa840e8631acc528893512177293')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

